package com.hemaapp.yjnh.nettask;

import java.util.HashMap;

import org.json.JSONObject;

import xtom.frame.exception.DataParseException;

import com.hemaapp.hm_FrameWork.result.HemaPageArrayResult;
import com.hemaapp.yjnh.BaseHttpInformation;
import com.hemaapp.yjnh.BaseNetTask;
import com.hemaapp.yjnh.bean.Client;

/**获取用户列表
 * @author ZhangGuiyou
 * Date: 2015-8-7 11:21
 */
public class ClientListTask extends BaseNetTask {

	public ClientListTask(BaseHttpInformation information,
			HashMap<String, String> params) {
		super(information, params);
	}

	public ClientListTask(BaseHttpInformation information,
			HashMap<String, String> params, HashMap<String, String> files) {
		super(information, params, files);
	}

	@Override
	public Object parse(JSONObject jsonObject) throws DataParseException {
		return new Result(jsonObject);
	}
	
	private class Result extends HemaPageArrayResult<Client> {

		public Result(JSONObject jsonObject) throws DataParseException {
			super(jsonObject);
		}

		@Override
		public Client parse(JSONObject jsonObject) throws DataParseException {
			return new Client(jsonObject);
		}

	}
}
